<template>
    <div>


        <el-descriptions title="用户信息">
            <el-descriptions-item label="用户昵称">{{name}}</el-descriptions-item>
            <el-descriptions-item label="手机号">{{phone}}</el-descriptions-item>
            <el-descriptions-item label="生日">{{birthday}}</el-descriptions-item>
            <el-descriptions-item label="个性签名">{{showMessage}}</el-descriptions-item>
            <el-descriptions-item label="邮箱">{{email}}</el-descriptions-item>
        </el-descriptions>
    </div>
</template>

<script>
    export default {
        name: "message",
        created: function f() {
            this.$axios
                .get('/api/user/getAllMsg')
                .then((req)=>{
                    var tmp = req.data.data;
                    this.name = tmp.name;
                    this.phone = tmp.phone;
                    this.birthday = tmp.birthday;
                    this.showMessage = tmp.showMsg;
                    this.email = tmp.email;
                })
        },
        data(){
            return{
                phone:'Null',
                name:'Null',
                birthday:'Null',
                power:'Null',
                showMessage:'Null',
                email:'Null'
            }
        }
    }
</script>

<style scoped>

</style>
